//
//  IJIssueAddPicCell.m
//  iwjw
//
//  Created by ChenJianjun on 2016/12/14.
//  Copyright © 2016年 iwujwu. All rights reserved.
//

#import "IJIssueAddPicCell.h"

@implementation IJIssueAddPicCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        UIView *bgView = [[UIView alloc] init];
        bgView.backgroundColor = [UIColor jc_colorWithHexString:@"F1F1F1"];
        [self.contentView addSubview:bgView];
        
        UIImageView *picView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"添加"]];
        [bgView addSubview:picView];
        
        UILabel *addLabel = [[UILabel alloc] init];
        addLabel.textAlignment = NSTextAlignmentCenter;
        addLabel.font = [UIFont systemFontOfSize:11.f];
        addLabel.textColor = [UIColor jc_colorWithHexString:@"979797"];
        addLabel.text = @"添加图片";
        [bgView addSubview:addLabel];
        
        [bgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.leading.bottom.mas_equalTo(0);
            make.top.mas_equalTo(8);
            make.trailing.mas_equalTo(-8);
        }];
        [picView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(24);
            make.centerX.mas_equalTo(0);
            make.centerY.mas_equalTo(-10);
        }];
        [addLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.leading.trailing.mas_equalTo(0);
            make.height.mas_equalTo(12);
            make.top.mas_equalTo(picView.mas_bottom).mas_offset(10);
        }];
    }
    return self;
}

@end
